package cn.lbd.city.entity;

import org.springframework.stereotype.Component;

/**
 * @author 张宝奎
 * @date 2021/3/13
 */
@Component
public class CityInfo {
    private int id;        //id
    private int parentId;  //父类id
    private String name;   //名称
    private double area;   //占地面积
    private int people;   //人口
    

    public CityInfo(int id, int parentId, String name, double area, int people) {
        this.id = id;
        this.parentId = parentId;
        this.name = name;
        this.area = area;
        this.people = people;
    }

    public CityInfo() {
    }

    @Override
    public String toString() {
        return "CityInfo{" +
                "id=" + id +
                ", parentId=" + parentId +
                ", name='" + name + '\'' +
                ", area=" + area +
                ", people=" + people +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getArea() {
        return area;
    }

    public void setArea(double area) {
        this.area = area;
    }

    public int getPeople() {
        return people;
    }

    public void setPeople(int people) {
        this.people = people;
    }
}
